package com.kingdee.eas.ec.garden.invite.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.eas.ec.garden.invite.PurInviteSupplierInfoEntryInfo;
import com.kingdee.eas.ec.basedata.BaseBillEntryCollection;
import com.kingdee.eas.framework.CoreBillEntryBaseCollection;
import com.kingdee.bos.metadata.entity.SelectorItemCollection;
import com.kingdee.eas.framework.CoreBaseCollection;
import com.kingdee.eas.framework.BillEntryBaseCollection;
import com.kingdee.eas.ec.basedata.app.BaseBillEntryControllerBean;
import com.kingdee.eas.ec.garden.invite.PurInviteSupplierInfoEntryCollection;
import com.kingdee.eas.framework.CoreBaseInfo;



public abstract class AbstractPurInviteSupplierInfoEntryControllerBean extends BaseBillEntryControllerBean implements PurInviteSupplierInfoEntryController
{
    protected AbstractPurInviteSupplierInfoEntryControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("E55B8226");
    }

    public PurInviteSupplierInfoEntryInfo getPurInviteSupplierInfoEntryInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("1f73a14c-f092-49f0-9e1c-9fed0a29077f"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            PurInviteSupplierInfoEntryInfo retValue = (PurInviteSupplierInfoEntryInfo)_getValue(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk);
    }

    public PurInviteSupplierInfoEntryInfo getPurInviteSupplierInfoEntryInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("6d3fbcb3-aabf-4f36-98b5-51ccb2a6b4b1"), new Object[]{ctx, pk, selector});
            invokeServiceBefore(svcCtx);
            PurInviteSupplierInfoEntryInfo retValue = (PurInviteSupplierInfoEntryInfo)_getValue(ctx, pk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk, selector);
    }

    public PurInviteSupplierInfoEntryInfo getPurInviteSupplierInfoEntryInfo(Context ctx, String oql) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("1e6d2a99-92b6-4fbc-8863-e0d76cefad35"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            PurInviteSupplierInfoEntryInfo retValue = (PurInviteSupplierInfoEntryInfo)_getValue(ctx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
    {
        return super._getValue(ctx, oql);
    }

    public PurInviteSupplierInfoEntryCollection getPurInviteSupplierInfoEntryCollection(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("cca78ab1-70a7-462a-b730-c16b067f4e92"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            PurInviteSupplierInfoEntryCollection retValue = (PurInviteSupplierInfoEntryCollection)_getCollection(ctx, svcCtx);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
    {
        return super._getCollection(ctx, svcCtx);
    }

    public PurInviteSupplierInfoEntryCollection getPurInviteSupplierInfoEntryCollection(Context ctx, EntityViewInfo view) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("4c191a4b-3065-411a-abfe-68e9c4535099"), new Object[]{ctx, view});
            invokeServiceBefore(svcCtx);
            PurInviteSupplierInfoEntryCollection retValue = (PurInviteSupplierInfoEntryCollection)_getCollection(ctx, svcCtx, view);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, view);
    }

    public PurInviteSupplierInfoEntryCollection getPurInviteSupplierInfoEntryCollection(Context ctx, String oql) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("980aa04c-0333-4e1c-8449-3bce7ea819bc"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            PurInviteSupplierInfoEntryCollection retValue = (PurInviteSupplierInfoEntryCollection)_getCollection(ctx, svcCtx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, oql);
    }

    public BaseBillEntryCollection getBaseBillEntryCollection (Context ctx) throws BOSException
    {
    	return (BaseBillEntryCollection)(getPurInviteSupplierInfoEntryCollection(ctx).cast(BaseBillEntryCollection.class));
    }
    public BaseBillEntryCollection getBaseBillEntryCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BaseBillEntryCollection)(getPurInviteSupplierInfoEntryCollection(ctx, view).cast(BaseBillEntryCollection.class));
    }
    public BaseBillEntryCollection getBaseBillEntryCollection (Context ctx, String oql) throws BOSException
    {
    	return (BaseBillEntryCollection)(getPurInviteSupplierInfoEntryCollection(ctx, oql).cast(BaseBillEntryCollection.class));
    }
    public BillEntryBaseCollection getBillEntryBaseCollection (Context ctx) throws BOSException
    {
    	return (BillEntryBaseCollection)(getPurInviteSupplierInfoEntryCollection(ctx).cast(BillEntryBaseCollection.class));
    }
    public BillEntryBaseCollection getBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BillEntryBaseCollection)(getPurInviteSupplierInfoEntryCollection(ctx, view).cast(BillEntryBaseCollection.class));
    }
    public BillEntryBaseCollection getBillEntryBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (BillEntryBaseCollection)(getPurInviteSupplierInfoEntryCollection(ctx, oql).cast(BillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getPurInviteSupplierInfoEntryCollection(ctx).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getPurInviteSupplierInfoEntryCollection(ctx, view).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getPurInviteSupplierInfoEntryCollection(ctx, oql).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBaseCollection)(getPurInviteSupplierInfoEntryCollection(ctx).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBaseCollection)(getPurInviteSupplierInfoEntryCollection(ctx, view).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBaseCollection)(getPurInviteSupplierInfoEntryCollection(ctx, oql).cast(CoreBaseCollection.class));
    }
}